<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0zapkqf" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.8.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
  <bpmn:process id="process_with_call_activities" name="Tenant resolution in call activities" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1">
      <bpmn:outgoing>Flow_1b28icv</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:sequenceFlow id="Flow_1b28icv" sourceRef="StartEvent_1" targetRef="null_tenant_reference_same_tenant" />
    <bpmn:callActivity id="null_tenant_reference_same_tenant" name="null tenant reference same tenant" calledElement="processOne">
      <bpmn:incoming>Flow_1b28icv</bpmn:incoming>
      <bpmn:outgoing>Flow_1yxslbb</bpmn:outgoing>
    </bpmn:callActivity>
    <bpmn:sequenceFlow id="Flow_1yxslbb" sourceRef="null_tenant_reference_same_tenant" targetRef="null_tenant_reference_other_tenant" />
    <bpmn:sequenceFlow id="Flow_0javxdh" sourceRef="null_tenant_reference_other_tenant" targetRef="explicit_same_tenant_reference" />
    <bpmn:callActivity id="null_tenant_reference_other_tenant" name="null tenant reference other tenant" calledElement="processTwo">
      <bpmn:incoming>Flow_1yxslbb</bpmn:incoming>
      <bpmn:outgoing>Flow_0javxdh</bpmn:outgoing>
    </bpmn:callActivity>
    <bpmn:callActivity id="explicit_same_tenant_reference" name="explicit same tenant" calledElement="processOne" camunda:calledElementTenantId="aTenant">
      <bpmn:incoming>Flow_0javxdh</bpmn:incoming>
      <bpmn:outgoing>Flow_0gby0iv</bpmn:outgoing>
    </bpmn:callActivity>
    <bpmn:sequenceFlow id="Flow_0gby0iv" sourceRef="explicit_same_tenant_reference" targetRef="explicit_other_tenant_reference" />
    <bpmn:callActivity id="explicit_other_tenant_reference" name="explicit other tenant" calledElement="processOne" camunda:calledElementTenantId="anotherTenant">
      <bpmn:incoming>Flow_0gby0iv</bpmn:incoming>
      <bpmn:outgoing>Flow_1mpbuea</bpmn:outgoing>
    </bpmn:callActivity>
    <bpmn:endEvent id="Event_0ecdgga">
      <bpmn:incoming>Flow_1mpbuea</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_1mpbuea" sourceRef="explicit_other_tenant_reference" targetRef="Event_0ecdgga" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="process_with_call_activities">
      <bpmndi:BPMNEdge id="Flow_1mpbuea_di" bpmnElement="Flow_1mpbuea">
        <di:waypoint x="850" y="117" />
        <di:waypoint x="912" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0gby0iv_di" bpmnElement="Flow_0gby0iv">
        <di:waypoint x="690" y="117" />
        <di:waypoint x="750" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0javxdh_di" bpmnElement="Flow_0javxdh">
        <di:waypoint x="530" y="117" />
        <di:waypoint x="590" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1yxslbb_di" bpmnElement="Flow_1yxslbb">
        <di:waypoint x="370" y="117" />
        <di:waypoint x="430" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1b28icv_di" bpmnElement="Flow_1b28icv">
        <di:waypoint x="215" y="117" />
        <di:waypoint x="270" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="179" y="99" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1e4bxop_di" bpmnElement="null_tenant_reference_same_tenant">
        <dc:Bounds x="270" y="77" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0p0cjlr_di" bpmnElement="null_tenant_reference_other_tenant">
        <dc:Bounds x="430" y="77" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0a5xgvy_di" bpmnElement="explicit_same_tenant_reference">
        <dc:Bounds x="590" y="77" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0g1jfoc_di" bpmnElement="explicit_other_tenant_reference">
        <dc:Bounds x="750" y="77" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0ecdgga_di" bpmnElement="Event_0ecdgga">
        <dc:Bounds x="912" y="99" width="36" height="36" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
